import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

export const exampleStore = defineStore('example', () => {
  const count = ref<number>(0)
  const add = () => {
    count.value++
  }
  const doubleCount = computed(() => {
    return count.value * 2
  })
  return {
    count,
    add,
    doubleCount
  }
})
